import {
  HomeOutlined,
  AppstoreOutlined,
  BarsOutlined,
  ToolOutlined,
  UserOutlined,
  SafetyOutlined,
  AreaChartOutlined,
  BarChartOutlined,
  PieChartOutlined,
  LineChartOutlined,
} from '@ant-design/icons';

const menuList = [
  {
    title: '首页', // 菜单标题名称
    path: '/admin/home', // 对应的path
    key: 'home',//对应的关键字
    icon: HomeOutlined, // 图标名称
    isPublic: true, // 公开的
  },
  {
    title: '商品',
    path: '/admin/product_about',
    key: 'product_about',
    icon: AppstoreOutlined,
    children: [ // 子菜单列表
      {
        title: '品类管理',
        path: '/admin/product_about/category',
        key: 'category',
        icon: BarsOutlined
      },
      {
        title: '商品管理',
        path: '/admin/product_about/product',
        key: 'product',
        icon: ToolOutlined
      },
    ]
  },

  {
    title: '用户管理',
    path: '/admin/user',
    key: 'user',
    icon: UserOutlined
  },
  {
    title: '角色管理',
    path: '/admin/role',
    key: 'role',
    icon: SafetyOutlined,
  },

  {
    title: '图形图表',
    path: '/admin/charts',
    key: 'charts',
    icon: AreaChartOutlined,
    children: [
      {
        title: '柱形图',
        path: '/admin/charts/bar',
        key: 'bar',
        icon: BarChartOutlined
      },
      {
        title: '折线图',
        path: '/admin/charts/line',
        key: 'line',
        icon: LineChartOutlined
      },
      {
        title: '饼图',
        path: '/admin/charts/pie',
        key: 'pie',
        icon: PieChartOutlined
      },
    ]
  },
]

export default menuList